﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QAAdmin.BusinessObject
{
    public class QAJob
    {
        private string jobId;
        public string JobID
        {
            get { return jobId; }
            set { jobId = value; }
        }

        private string docId;

        public string DocId
        {
            get { return docId; }
            set { docId = value; }
        }

        private string namaPTKP;

        public string NamaPTKP
        {
            get { return namaPTKP; }
            set { namaPTKP = value; }
        }

        private string npwp;

        public string Npwp
        {
            get { return npwp; }
            set { npwp = value; }
        }

        private string masaPajak;

        public string MasaPajak
        {
            get { return masaPajak; }
            set { masaPajak = value; }
        }

        private DateTime waktuPenugasan;

        public DateTime WaktuPenugasan
        {
            get { return waktuPenugasan; }
            set { waktuPenugasan = value; }
        }

        private string ditugaskanKepada;

        public string DitugaskanKepada
        {
            get { return ditugaskanKepada; }
            set { ditugaskanKepada = value; }
        }

        private string statusAsal;

        public string StatusAsal
        {
            get { return statusAsal; }
            set { statusAsal = value; }
        }

        private string statusAkhir;

        public string StatusAkhir
        {
            get { return statusAkhir; }
            set { statusAkhir = value; }
        }

        private DateTime waktuPengecekan;

        public DateTime WaktuPengecekan
        {
            get { return waktuPengecekan; }
            set { waktuPengecekan = value; }
        }

        private string catatan;

        public string Catatan
        {
            get { return catatan; }
            set { catatan = value; }
        }

        private string jenisSPT;

        public string JenisSPT
        {
            get { return jenisSPT; }
            set { jenisSPT = value; }
        }

        private string barcode;

        public string Barcode
        {
            get { return barcode; }
            set { barcode = value; }
        }

        private string jumlahPerbaikan;
        public string JumlahPerbaikan
        {
            get { return jumlahPerbaikan; }
            set { jumlahPerbaikan = value; }
        }

        public override bool Equals(object obj)
        {
            return Equals(obj as QAJob);
        }

        public bool Equals(QAJob obj)
        {
            if (obj == null) return false;
            return obj.docId.Equals(this.DocId);
        }

        public override int GetHashCode()
        {
            return DocId.GetHashCode();
        }

        public override string ToString()
        {
            return "(" + DocId + ") " + NamaPTKP + " - " + JenisSPT;
        }     

    }
}
